package cn.tedu.service;

import cn.tedu.dao.CarMapper;
import cn.tedu.pojo.Car;
import lombok.SneakyThrows;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.util.List;
@Service
public class CarServiceImpl implements CarService {
    @Autowired(required = false)
    private CarMapper mapper;

    @SneakyThrows
    @Override
    public List<Car> getAll() {
        return mapper.getAll();
    }
}
